package cn.wubo.mybatis.plus.dynamic.datasource.demo.po;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

@TableName(value = "config_item")
@Data
public class ConfigItemPO implements Serializable {

    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;

    @TableField(value = "tenant_id", fill = FieldFill.INSERT)
    private String tenantId;

    @TableField(value = "create_user", fill = FieldFill.INSERT)
    private String createdBy;

    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime created;

    @TableField(value = "last_modified", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updated;

    @TableField(value = "last_modify_user", fill = FieldFill.INSERT_UPDATE)
    private String updatedBy;

    @TableField(value = "version", fill = FieldFill.INSERT)
    @Version
    private Integer version;

    @TableField(value = "app_micro_id")
    private String appMicroId;

    @TableField(value = "type")
    private String type;

    @TableField(value = "item_key")
    private String itemKey;

    @TableField(value = "item_value")
    private String itemValue;

    @TableField(value = "remark")
    private String remark;

    @TableField(value = "app_micro_code")
    private String appMicroCode;

    @TableField(value = "system_id")
    private String systemId;

    @TableField(value = "encrypt_flag")
    private String encryptFlag;
}
